package com.example.supermarket.mapper;

import com.example.supermarket.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EmployeeMapper {
    List<Employee> selectAllEmployee();

    List<Employee> selectEmployeeByName(@Param("key") String key);

    void insertEmployee(Employee employee);

    void deleteEmployee(@Param("Eid") String Eid);

    void updateEmployee(Employee employee);
}
